package com.itheima.work1120;

import java.util.HashMap;

public class Demo4 {
    public static void main(String[] args) {
        HashMap<String, Integer> hm = new HashMap<>();
        hm.put("刘岩", 2100);
        hm.put("张亮", 1700);
        hm.put("诸葛亮", 1800);
        hm.put("灭绝师太", 2600);
        hm.put("东方不败", 3800);
//        System.out.println(hm);
        String Name = "刘岩";
        int a = hm.get(Name);
        int newmoney = a + 300;
        hm.put(Name, newmoney);
        System.out.println(hm);

    }
}
